home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / S3D_2E1.exe / Shout3d_runtime / codebase / models / segmentedAnimationTest.wrl < prev    next >
Text File  |  2000-11-12  |  3KB  |  140 lines

  1. #VRML V2.0 utf8
  2.  
  3. #Cosmo Worlds V2.0
  4.  
  5. WorldInfo {
  6.   info    "Test for breaking animation into 3 parts"
  7. }
  8. DEF TIMER TimeSensor {
  9.       loop true
  10. }
  11. DEF FRACTION_REMAPPER FractionRemapper {
  12.     timeScale 30
  13.     startKey 0
  14.     endKey   10
  15. }
  16. DEF _0 Transform {
  17.   children    [
  18.     Shape {
  19.       appearance    Appearance {
  20.     material    Material {
  21.     }
  22.  
  23.       }
  24.  
  25.       geometry    DEF _1 IndexedFaceSet {
  26.     coord    Coordinate {
  27.       point    [ -1 1 1,
  28.             -1 -1 1,
  29.             1 1 1,
  30.             1 -1 1,
  31.             1 1 -1,
  32.             1 -1 -1,
  33.             -1 1 -1,
  34.             -1 -1 -1 ]
  35.     }
  36.  
  37.     coordIndex    [ 0, 1, 3, 2, -1, 4, 5, 7,
  38.           6, -1, 6, 7, 1, 0, -1, 2,
  39.           3, 5, 4, -1, 6, 0, 2, 4,
  40.           -1, 1, 7, 5, 3, -1 ]
  41.     creaseAngle    0.5
  42.     normalIndex    [  ]
  43.       }
  44.  
  45.     }
  46.     DEF UnnamedAnimation0 Group {
  47.       children    [
  48.     DEF POS_INTERP_1 PositionInterpolator {
  49.         timeScale 30
  50.         key [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
  51.             13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 
  52.             25, 26, 27, 28, 29, 30 ]
  53.       keyValue    [ 0 1 0,
  54.             -0.583508 0.978826 -0.0296143,
  55.             -1.2548 0.936479 -0.0620831,
  56.             -1.8822 0.904719 -0.0931246,
  57.             -2.33403 0.915305 -0.118457,
  58.             -2.47863 1 -0.1338,
  59.             -2.36846 1.1774 -0.141025,
  60.             -2.15702 1.42784 -0.145218,
  61.             -1.86421 1.72568 -0.146912,
  62.             -1.5099 2.04531 -0.146645,
  63.             -1.11399 2.36108 -0.14495,
  64.             -0.696346 2.64737 -0.142363,
  65.             -0.276867 2.87854 -0.13942,
  66.             0.124568 3.02896 -0.136654,
  67.             0.488075 3.073 -0.134603,
  68.             0.793769 2.98503 -0.1338,
  69.             1.06652 2.55089 -0.135039,
  70.             1.32969 1.71059 -0.137764,
  71.             1.56116 0.669719 -0.14049,
  72.             1.73878 -0.366121 -0.141729,
  73.             1.84041 -1.19133 -0.139994,
  74.             1.84393 -1.60031 -0.1338,
  75.             1.75912 -1.64423 -0.123632,
  76.             1.61802 -1.53213 -0.111261,
  77.             1.4319 -1.29522 -0.0971288,
  78.             1.21201 -0.964688 -0.0816748,
  79.             0.96961 -0.571749 -0.0653398,
  80.             0.715951 -0.147607 -0.0485644,
  81.             0.462291 0.276536 -0.0317889,
  82.             0.219888 0.669473 -0.0154539,
  83.             0 1 0 ]
  84.     }
  85.     DEF ROT_INTERP_1 OrientationInterpolator {
  86.         timeScale 30
  87.         key [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
  88.               13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  89.               25, 26, 27, 28, 29, 30 ]
  90.       keyValue    [ 0 0 1  0,
  91.             0 0 -1  0.0367937,
  92.             0 0 -1  0.0886569,
  93.             0 0 -1  0.152769,
  94.             0 0 -1  0.226303,
  95.             0 0 -1  0.306436,
  96.             0 0 -1  0.390345,
  97.             0 0 -1  0.475205,
  98.             0 0 -1  0.558194,
  99.             0 0 -1  0.636488,
  100.             0 0 -1  0.707262,
  101.             0 0 -1  0.767694,
  102.             0 0 -1  0.814959,
  103.             0 0 -1  0.846234,
  104.             0 0 -1  0.858695,
  105.             0 0 -1  0.849519,
  106.             0 0 -1  0.713551,
  107.             0 0 -1  0.451372,
  108.             0 0 -1  0.124552,
  109.             0 0 1  0.205344,
  110.             0 0 1  0.476748,
  111.             0 0 1  0.628092,
  112.             0 0 1  0.647289,
  113.             0 0 1  0.617989,
  114.             0 0 1  0.551443,
  115.             0 0 1  0.4589,
  116.             0 0 1  0.351612,
  117.             0 0 1  0.240827,
  118.             0 0 1  0.137797,
  119.             0 0 1  0.0537702,
  120.             0 0 1  0 ]
  121.     }
  122.       ]
  123.     }
  124.     DEF TOUCH_SENSOR TouchSensor {
  125.     }
  126.   ]
  127.   translation    0 1 0
  128.   rotation    0 0 1  0
  129. }
  130. Viewpoint {
  131.   position    -3.23406 4.56847 6.14924
  132.   orientation    -0.633779 -0.749128 -0.192698  0.696482
  133.   fieldOfView    0.785398
  134. }
  135. ROUTE TOUCH_SENSOR.touchTime TO TIMER.startTime
  136.  
  137. ROUTE TIMER.fraction TO FRACTION_REMAPPER.inFractionROUTE FRACTION_REMAPPER.outFraction TO POS_INTERP_1.fractionROUTE FRACTION_REMAPPER.outFraction TO ROT_INTERP_1.fraction
  138. ROUTE POS_INTERP_1.value TO _0.translation
  139. ROUTE ROT_INTERP_1.value TO _0.rotation
  140.